#include <gnome.h>

int main(int argc,char *argv[]){
	GtkWidget *w;
	gnome_init("My First Gnome App","1.0",argc,argv);
	w = gnome_app_new("gnomewin","gnome Window");
	gtk_widget_show_all(w);

	GtkWidget *dialog;
	//dialog = gnome_ok_dialog("hello dialog!!!\nmade by hopy|侯佩");
	dialog = gnome_ok_dialog_parented("hello dialog!!!\nmade by hopy|侯佩",GTK_WINDOW(w));

	gtk_window_set_modal(GTK_WINDOW(dialog),TRUE);

	gtk_main();
	return 0;
}
